<?xml version="1.0" ?>
<!DOCTYPE msxconfig SYSTEM 'msxconfig2.dtd'>
<msxconfig>

  <info>
    <manufacturer>Toshiba</manufacturer>
    <code>HX-21</code>
    <release_year>1984</release_year>
    <description>Japanese MSX1 with RAM disk feature and stereo PSG.</description>
    <type>MSX</type>
  </info>

  <!-- Thanks to Werner Kai for the details! -->
  <!-- CPU is a Sharp LH0080A -->

  <CassettePort/>

  <devices>

    <PPI id="ppi">
      <sound>
        <volume>16000</volume>
      </sound>
      <io base="0xA8" num="4"/>
      <keyboard_type>jp_jis</keyboard_type>
      <has_keypad>false</has_keypad>
      <key_ghosting_sgc_protected>false</key_ghosting_sgc_protected>
      <code_kana_locks>true</code_kana_locks>
      <graph_locks>false</graph_locks>
    </PPI>

    <VDP id="VDP">
      <version>TMS9928A</version>
      <io base="0x98" num="2"/>
      <saturation>100</saturation> <!-- TMS9x2x and RGB output -->
    </VDP>

    <PSG id="PSG">
      <type>AY8910</type>
      <keyboardlayout>jis</keyboardlayout>
      <sound>
        <volume>21000</volume>
        <balance channel="1">0</balance>
        <balance channel="2">100</balance> <!-- According to Werner Kai -->
        <balance channel="3">-100</balance><!-- According to Werner Kai -->
      </sound>
      <io base="0xA0" num="2" type="O"/>
      <io base="0xA2" num="1" type="I"/>
      <ignorePortDirections>false</ignorePortDirections> <!-- not sure, but guess based on discrete PSG chip -->
    </PSG>

    <PrinterPort id="Printer Port">
      <io base="0x90" num="2"/>
    </PrinterPort>

    <primary slot="0">
      <ROM id="MSX BIOS with BASIC ROM">
        <rom>
          <filename>HX21-IC2.BIN</filename>
          <sha1>01600d06d83072d4e757b29728555efde2c79705</sha1> <!-- direct ROM dump by Werner Kai -->
        </rom>
        <mem base="0x0000" size="0x8000"/>
      </ROM>
    </primary>

    <primary external="true" slot="1"/>

    <primary external="true" slot="2"/>

    <primary slot="3">

      <secondary slot="0">
        <RAM id="Main RAM">
          <mem base="0x0000" size="0x10000"/>
        </RAM>
      </secondary>

      <secondary slot="3">
        <ROM id="Software Utility ROM">
          <rom>
            <sha1>4e2ec9c0294a18a3ab463f182f9333d2af68cdca</sha1> <!-- direct ROM dump by Werner Kai -->
            <filename>HX21-IC3.BIN</filename>
          </rom>
          <mem base="0x0000" size="0x10000"/>
        </ROM>
      </secondary>

    </primary>

  </devices>

</msxconfig>
